package com.sk.rpcAssistNetty.annotation;


import com.sk.rpcAssistNetty.policy.ServiceBeanDefinitionRegistry;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * description：标识rpc服务，并定义扫包范围
 *
 * @author 孙文斌
 * @Date: 2021/2/1 16:27
 */
@Target({ ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
//@ComponentScan(basePackages={"com.sk.client.level2","com.sk.rpcAssist","com.sk.common.level2.rpcInterface"})
//@ComponentScan(basePackages={"com.sk.rpcAssist","com.sk.common.level2.rpcInterface"})
//@ComponentScan(basePackages={"com.sk.rpcAssist"})
@Import(ServiceBeanDefinitionRegistry.class)
public @interface EnableRpc {
}